#ifndef _WORK_MOD_SW_
#define	_WORK_MOD_SW_

#ifdef __C51__
#include "typedef.h"
#include "main.h"
#endif

#ifdef  GW_037C
typedef enum{
	USB_DEV,
	SD_DEV,
	#ifndef NOT_USE_LINE_IN_FUNC
	AUX_DEV,
	#endif
	FM_DEV,
	#ifdef IPONE_DOCK_FUNC_ENABLE
	 IPHONE_DEV,
	 #endif
	 #ifdef BLUETOOTH_FUNC_ENABLE
	 BLUETOOTH_DEV,
	 #endif
	RTC_DEV,
	IDLE,
}DEV_ON_LIST;
#else
typedef enum{

	USB_DEV,
	SD_DEV,
	FM_DEV,
	#ifndef NOT_USE_LINE_IN_FUNC
	AUX_DEV,
	#endif
	#ifdef IPONE_DOCK_FUNC_ENABLE
	 IPHONE_DEV,
	 #endif
	 #ifdef BLUETOOTH_FUNC_ENABLE
	 BLUETOOTH_DEV,
	 #endif
	RTC_DEV,
	IDLE,
}DEV_ON_LIST;
#endif

extern  _xdata unsigned int  Sys_Func_List;

void Add_Func_To_List(DEV_ON_LIST Dev);
void Init_Func_List();
void Set_Curr_Func(unsigned char  curr_mod);
void Remov_Func_From_List(DEV_ON_LIST Dev);
SYS_WORK_MODE Next_Func(void);

#endif
